package cn.com.cifi.mars.mapper.mars;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.com.cifi.mars.bean.dto.IdmUserPageDto;
import cn.com.cifi.mars.bean.vo.sys.rsp.GroupUserVo;
import cn.com.cifi.mars.entity.common.IdmUser;

/**
 * 用户信息
 * @author 60157
 *
 */
public interface IdmUserMapper  extends BaseMapper<IdmUser>{
	
	List<IdmUser> selectUserList();
	
	IdmUser selectByUserName(String userName);
	
	List<IdmUserPageDto>selectUserPage(Page page,@Param("departmentnumber")String departmentnumber,@Param("usercn")String usercn);
	
	List<GroupUserVo> selectByJobNums(@Param("jobNums")List<String>jobNums);

	void insertList(@Param("list") List<IdmUser> list);
	
	void updateBatch(@Param("updateList") List<IdmUser> list);
	
	List<IdmUser> selectGroupPrincipal(@Param("positionGroupIds")List<String> positionGroupIds, @Param("orgId")String orgId);
	
	List<IdmUser> selectRegionPrincipal(@Param("curPositionGroupIds")List<String> curPositionGroupIds,@Param("parentPositionGroupIds")List<String> parentPositionGroupIds, @Param("orgPath")String orgPath, @Param("pOrgPath")String pOrgPath);
	
	List<IdmUser> selectRegionUser(@Param("positionGroupIds")List<String> positionGroupIds, @Param("orgId")String orgId);
	
	
}
